package com.service.business.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.service.dao.model.MemberAddress;
import com.service.business.member.controller.rep.MemberAddressRep;
import com.service.business.member.controller.req.MemberAddressCreateReq;
import com.service.business.member.controller.req.MemberAddressUpdateReq;

import java.util.List;

/**
 * 会员收货地址

 *
 * @author xxxx
 * @email xxxx@qq.com
 * @date 2019-11-10 22:25:35
 */
public interface MemberAddressService extends IService<MemberAddress> {

    MemberAddressRep getMemberDefaultAddress(Integer memberId);

    Integer addMemberAddress(Integer memberId,MemberAddressCreateReq memberAddressCreateReq);

    List<MemberAddressRep> getMemberAddress(Integer memberId);

    Integer updateAddress(Integer addressId, MemberAddressUpdateReq memberAddressUpdateReq);

    Integer delete(Integer addressId);

    MemberAddressRep getAddressDetail(Integer addressId);

    void changeDefaultAddress(Integer addressId);
}

